package com.example.system.controller;

import com.example.common.Result;

import com.example.system.service.SysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user")
public class SysUserController {

    @Autowired
    public SysUserService sysUserService;

    @GetMapping("/selectUserInfo")
    public Result selectAll(){
        return Result.success(sysUserService.selectAll());
    }

}
